package com.itheima.tliasmanagementspringboot.aspect;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 演示通知顺序
 */
@Component
//@Aspect
@Slf4j

public class Aspect3 {
    //定义一个切入点表达式,抽取重复的表达式
    @Pointcut("execution(* com.itheima.tliasmanagementspringboot.service.*.*(..))")
    public void point(){}

    @Before("point()")
    public void before(){
        log.info("前置通知");
    }


}
